package com.le.tester.book.concurrentjavafight.l_14;

import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
 * createTime：2024/5/23 14:55
 * description：显式的condition对象
 */
public interface Condition {

    void await() throws InterruptedException;

    boolean await(long time, TimeUnit timeUnit) throws InterruptedException;

    long awaitNanos(long nanosTimeout) throws InterruptedException;

    void awaitUninterruptibly();

    boolean awaitUntil(Date deadLine) throws InterruptedException;

    void single();

    void singleAll();
}
